package com.seaboxdata.dao;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.seaboxdata.entity.CirclesDepartment;
import java.util.Date;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author
 * @create 2021-01-04 11:53
 **/
@Mapper
public interface DepartmentDao extends BaseMapper<CirclesDepartment> {

    Integer totalCount();

    List<CirclesDepartment> getProvideCirclesInfo();

    List<CirclesDepartment> getUseCirclesInfo();

    List<CirclesDepartment> getDepartmentDbInfo();

    List<CirclesDepartment> getShareDbInfo();

    @DS("subject")
    Integer getCountByTable(@Param("tableName") String tableName);


    List<CirclesDepartment> getSysGovDataInfo(@Param("dataDt") Date dataDt);


    List<CirclesDepartment> getResDataRankInfo();


    /**
     * 查询数据资源情况-基础/主题/专题
     *
     * @return
     */
    List<CirclesDepartment> getResDbDataInfo();
}
